/**
 * 
 */
package com.jrh.domain.entity;

import java.util.List;

/**
 * 类目
 * 
 * @author jasen.hsu.cn@gmail.com 2012-7-16 下午1:07:49
 */
public class Category {

    public static final Integer IS_PARENT_ = 1;
    public static final Integer IS_CHILD_  = 0;
    public static final Long    PARENT_CAT = 0L;

    /** 主键 */
    private Long                id;

    /** 父类目 */
    private Long                parent;

    /** 名称 */
    private String              name;

    /** 排序 */
    private Long                sortOrder;

    /** 是否为父目录类目 */
    private Integer             isParent;

    private List<Category>      childCategoryList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Long sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getIsParent() {
        return isParent;
    }

    public void setIsParent(Integer isParent) {
        this.isParent = isParent;
    }

    public List<Category> getChildCategoryList() {
        return childCategoryList;
    }

    public void setChildCategoryList(List<Category> childCategoryList) {
        this.childCategoryList = childCategoryList;
    }

}
